package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void addDish(DishDTO dto);

    PageResult getPage(DishPageQueryDTO dto);

    void deleteDishs(List<Long> ids);

    DishVO getDish(Long id);

    void updateDish(DishDTO dto);

    List<DishVO> getDishesByCategoryId(Long categoryId);

    void updateStatus(Long id, Integer status);

    /**
     * 导入
     * 条件查询菜品和口味
     * @param
     * @return
     */
    List<DishVO> listWithFlavor(Long categoryId);
}
